﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    public static class AccordionElements
    {
        public static string accordion()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("border:5px #EDEBD5 solid;");
            }
            return result.ToString();
        }
        public static string div_accordiontitle()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background: #4b6c9e url(blue/accordion.gif) no-repeat right -51px;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background: #ED5C0C url(green/accordion.gif) no-repeat right -51px;");
            }
            result.AppendLine("color:#fff;");
            result.AppendLine("padding: 7px 15px;");
            result.AppendLine("margin: 0;");
            result.AppendLine("cursor: pointer;");
            return result.ToString();
        }
        public static string div_accordiontitle_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background-color: #4b6c9e;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background-color: #ED5C0C;");
            }
            return result.ToString();
        }
        public static string div_accordiontitle_active()
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("background-position: right 5px;");            
            return result.ToString();
        }
        public static string div_accordioncontent()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("background-color: #fff;");
                result.AppendLine("border: solid 1px #4b6c9e;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("background-color: #F3951B;");
                result.AppendLine("border: solid 1px #F3951B;");
            }
            result.AppendLine("margin: 0;");
            result.AppendLine("padding:  5;");
            result.AppendLine("display: none;");
            return result.ToString();
        }
        public static string div_accordioncontent_a()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        public static string div_accordioncontent_a_link()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        public static string div_accordioncontent_a_hover()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        public static string div_accordioncontent_a_visited()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
        public static string div_accordioncontent_a_active()
        {
            StringBuilder result = new StringBuilder();
            if (ThemeSetting.theme() == "blue")
            {
                result.AppendLine("color: #034af3;");
            } if (ThemeSetting.theme() == "green")
            {
                result.AppendLine("color: #fff;");
            }
            return result.ToString();
        }
    }
}
